package cn.school.course.dao;

import cn.school.course.entity.Course;
import cn.school.course.vo.WeekCourseTableBySchoolClassReqVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: 课程Dao
 * @author: fangjin.tao
 * @date: 2023/1/4
 **/
@Mapper
public interface CourseDao extends BaseMapper<Course> {
	/**
	 * 查询课表
	 *
	 * @throws
	 * @author fangjin.tao
	 * @param: reqVo
	 * @updateTime 2023/2/2 8:43
	 * @return: java.util.List<cn.school.course.entity.Course>
	 */
	List<Course> selectCourseByWeekTable(@Param("reqVo") WeekCourseTableBySchoolClassReqVo reqVo);
	
	/**
	 * 查询课程列表
	 * @author fangjin.tao
	 * @updateTime 2023/2/7 8:48
	 * @throws
	 */
	List<Course> selectCourse(IPage<Course> page, @Param("ew") QueryWrapper<Course> queryWrapper);
}
